package org.domain.rescue2011.session;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;

import es.us.isa.jdbl.domain.AbstractNode;
import es.us.isa.jdbl.domain.Committee;

@Name("committeeList")
public class CommitteeList extends EntityQuery<Committee>{


	private static final String EJBQL = "select committee from Committee committee";

	// private static final String[] RESTRICTIONS = {
	// "lower(node.type) like lower(concat(#{nodeList.node.type},'%'))",
	// "lower(node.language) like lower(concat(#{nodeList.node.language},'%'))",
	// "lower(node.title) like lower(concat(#{nodeList.node.title},'%'))", };

	private Committee committee = new Committee() {
	};

	public CommitteeList() {
		setEjbql(EJBQL);
		// setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public Committee getCommitteeNode() {
		return committee;
	}
}
